Add a missing extern, to fix building with -fno-common
authorMartin Storsjö <martin@martin.st>
Sat, 4 Apr 2020 21:43:16 +0000 (00:43 +0300)
committerMartin Storsjö <martin@martin.st>
Sat, 4 Apr 2020 21:43:16 +0000 (00:43 +0300)
With C compilers defaulting to -fcommon, this isn't an issue, but
upcoming compilers (GCC 10 and Clang 11) will default to -fno-common,
ending up with duplicate definitions of these variables.

gdk/win32/gdkprivate-win32.h

index f0c651e11fc6ca7958aa5a2a7174ef78cf947ad0..ea86a917a3486db68b9ce933812d6910f45c4b01 100644 (file)
@@ -288,10 +288,10 @@ extern UINT              _gdk_input_codepage;
 extern guint             _gdk_keymap_serial;
 
 /* The singleton clipdrop object pointer */
-GdkWin32Clipdrop *_win32_clipdrop;
+extern GdkWin32Clipdrop *_win32_clipdrop;
 
 /* Used to identify the main thread */
-GThread          *_win32_main_thread;
+extern GThread          *_win32_main_thread;
 
 void _gdk_win32_dnd_do_dragdrop (void);